package com.jiaai.family.api;

import com.jiaai.family.model.TFamilyVO;
import com.jiaai.family.model.TmemberVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * TODO
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title TFamilyApi
 * @since 2017/10/19
 */
public interface TFamilyApi {
    /**
     *返回所有的家族列表
     * @param curr
     * @param tFamilyVO
     * @return
     */
    Object findByAll(Integer curr, TFamilyVO tFamilyVO) throws Exception;
    /**
     *添加家族
     * @param tFamilyVO
     * @return
     */
    Object addFamily(TFamilyVO tFamilyVO) throws Exception;
    /**
     *编辑修改家族
     * @param tFamilyVO
     * @return
     */
    Object update(TFamilyVO tFamilyVO) throws Exception;
    /**
     *查询单个家族的信息
     * @param fyId
     * @return
     */
    Object findById(Integer fyId) throws Exception;
    /**
     *删除单个家族
     * @param fyId
     * @return
     */
    Object delete(Integer fyId) throws Exception;
    /**
     *查询单个家族下的所有成员
     * @param tFamilyVO
     * @return
     */
    Object findByAllRole(Integer curr,TFamilyVO tFamilyVO) throws Exception;
    /**
     *审核通过家族修改审核状态
     * @param fyId
     * @param fyState
     * @return
     */
    Object changeState(Integer fyId,Integer fyState) throws Exception;
    /**
     *统计单个家族的所有成员
     * @param fyId
     * @return
     */
    Integer count(Integer fyId);

    /**
     *查询单个会员的所有的家族
     * @param mId
     * @return
     */
    List<Map> all(String mId);


    Object allmenmber(Integer curr, TmemberVO tmemberVO) throws Exception;

}
